package com.itheima.controller.system.exception;

public class BusinessException extends RuntimeException {
    private Integer Code;

    public Integer getCode() {
        return Code;
    }

    public void setCode(Integer code) {
        Code = code;
    }

    public BusinessException(Integer Code) {
        this.Code=Code;
    }

    public BusinessException(String message,Integer Code) {
        super(message);
        this.Code=Code;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
